<h1>Listing items</h1>

<table>
  <tr>
    <th>Description</th>
  </tr>

<% for item in @items %>
  <tr>
    <td><%=h item.description %></td>
    <td><%= link_to 'Show', item_path(@list, item) %></td>
    <td><%= link_to 'Edit', edit_item_path(@list, item) %></td>
    <td><%= link_to 'Destroy', item_path(@list, item), :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New item', new_item_path(@list) %>
